package com.teaphy.demo;

import com.teaphy.annotation.E;
import com.teaphy.annotation.Es;
import com.teaphy.data.EE;
import java.util.Arrays;

public class RepeatableDemo {
	
	public static void main(String[] args) {
		Class<EE> clz = EE.class;
		
		if (clz.isAnnotationPresent(Es.class)) {
			// 返回重复注解(E.class)列表
			E[] annotationsByType = clz.getAnnotationsByType(E.class);
			System.out.println("annotationsByType: " + Arrays.toString(annotationsByType));
		}
	}
	
}
